package com.gitee.democonsumer.controller;

import com.gitee.demoapi.DemoProviderApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 开发人员   YooLin1c
 * 编写日期   2019-01-06
 * 联系邮箱   401664157@qq.com
 * 作用描述
 */
@RestController
@RequestMapping("/consumer")
public class DemoConsumerController {

    @Autowired
    private DemoProviderApi providerApi;

    @GetMapping("/invoke")
    public String invoke() {
        return this.providerApi.test();
    }
}
